<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\cpmjagent\model\user;

/**
 * Description of AgentModel
 *
 * @author SoChishun
 */
class AgentModel extends \app\cpmjagent\model\AppbaseModel {
    protected $table = 't_agents';
    protected $autoWriteTimestamp = 'timestamp';
    protected function getRegistDateAttr($value) {
        return $this->createTime;
    }
    protected function getCreateTimeTextAttr() {
        return date('Y-m-d H:i',strtotime($this->create_time));
    }
    protected function getLoginTimeTextAttr() {
        return date('Y-m-d H:i',strtotime($this->login_time));
    }
    

}
